<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript" src="<?php echo JS_PATH?>jquery.sgallery.js"></script>

<div class="pad-lr-10">
<form name="searchform" action="?m=user_info&c=manage&a=init" method="get">
		<input type="hidden" value=user_info name="m"> 
		<input type="hidden" value="manage" name="c"> 
		<input type="hidden" value="init" name="a">
		<table width="100%" cellspacing="0" class="search-form">
			<tbody>
				<tr>
					<td>
						<div class="explain-col">
							<?php echo L('nickname')?>&nbsp;:&nbsp;<input name="nickname" class="input-text" value="<?php echo $_GET['nickname']?>" type="text" size="25">
							<?php echo L('tel')?>&nbsp;:&nbsp;<input name="tel" class="input-text" value="<?php echo $_GET['tel']?>" type="text" size="20"> 
							<?php echo L('create_time');?>&nbsp;:&nbsp;
				<?php echo form::date('begin_time',$_GET['begin_time'],0,0,'false');?>- &nbsp;<?php echo form::date('end_time',$_GET['end_time'],0,0,'false');?>
							&nbsp;&nbsp;&nbsp;<input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
						</div>
					</td>
				</tr>
			</tbody>
		</table>
	</form>
	<!-- 
<form name="myform" action="?m=user_info&c=manage&a=del" method="post" onsubmit="return confirm('<?php echo L('confirm')?>')"> -->
<div class="table-list">
<table width="100%" cellspacing="0">
	<thead>
		<tr>
			<th  align="center" width="20"><input type="checkbox" value="" id="check_box" onclick="selectall('id[]');"></th>
			<th align="center" width="20">ID</th>
			<th align="center" width="100"><?php echo L('nickname')?></th>
			<th align="center" width="80"><?php echo L('gender')?></th>
			<th align="center" width="100"><?php echo L('tel')?></th>
			<th align="center" width="80"><?php echo L('is_authentication')?></th>
			<th align="center" width="100"><?php echo L('photo_url')?></th>
			<th align="center" width="100"><?php echo L('create_time')?></th>
			<th align="center" width="100"><?php echo L('operation')?></th>
		</tr>
	</thead>
<tbody>
<?php
if(!empty($user_info)){
	foreach($user_info as $k=>$v) {
?>
    <tr>
		<td align="center"><input type="checkbox" value="<?php echo $v['id']?>" name="id[]"></td>
		<td align="center"><?php echo $v['id']?></td>
		<td align="center"><?php echo $v['nickname']?$v['nickname']:'<font color="red">（未设置）</font>';?></td>
		<td align="center"><?php if($v['gender']==1){echo "男";}elseif ($v['gender']==2){echo "女";}else{echo "保密";}?></td>
		<td align="center"><?php echo $v['tel']?$v['tel']:'<font color="red">（未设置）</font>';?></td>
		<td align="center"><?php if($v['is_authentication']==1){echo "是";}elseif ($v['is_authentication']==0){echo "否";}else{echo '<font color="red">（未设置）</font>';}?></td>
		<td align="center"><?php if($v['photo_url']){echo "<img src='".$v['photo_url']."' width='80px'>";}else{echo '<font color="red">（未设置）</font>';}?></td>
		<td align="center"><?php echo $v['create_time']?$v['create_time']:'<font color="red">（未设置）</font>';?></td>
		<td align="center">
		<a href="?m=user_info&c=manage&a=detail&id=<?php echo $v['id']?>"><?php echo L('detail');?></a>
		</td>
    </tr>
<?php
	}
} else {
?>
	<tr><td colspan='11' style='color:red;font-size:18px;text-align:center;'><span>暂无数据！</span></td></tr>
<?php }?>
</tbody>
</table>
<!-- 
<div class="btn">
<label for="check_box"><a href="#" onClick="javascript:$('input[type=checkbox]').attr('checked', true)"><?php echo L('select_all')?></a>/<a href="#" onClick="javascript:$('input[type=checkbox]').attr('checked', false)"><?php echo L('cancel')?></a></label> <input type="submit" class="button" name="dosubmit" value="<?php echo L('delete')?>"/>
</div>
 -->
<div id="pages"><?php echo $pages?></div>
</div>
<!-- </form> -->
</div>
</body>
</html>